package com.bank.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

@Data
@ApiModel(description = "账户状态变更传递的数据")
public class AccountStatusTransferDTO {
    @ApiModelProperty(value = "账户ID", required = true)
    private Long accountId;

    @ApiModelProperty(value = "真实姓名", required = true)
    private String realName;

    @ApiModelProperty(value = "身份证号", required = true)
    private String IdNumber;

    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @ApiModelProperty(value = "原因", required = true)
    private String reason;

    @ApiModelProperty(value = "状态 2-冻结 3-挂失 4-注销", required = true)
    @Min(value = 2, message = "状态只能是冻结，挂失，注销")
    @Max(value = 4, message = "状态只能是冻结，挂失，注销")
    private Integer status;
}
